build:
	rm -rf target/*
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build  -o ./target/httpserver main.go
	#	CGO_ENABLED=1 GOOS=linux CGO_LDFLAGS="-static" go build

export tag=0.0.1

build:
	echo "building httpserver binary"
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64 .

release: build
	echo "building httpserver container"
	docker build -t larva0/httpserver:${tag} .

push: release
	echo "pushing cncamp/httpserver"
	docker push larva0/httpserver:${tag}